package com.powerdata.system.domain.param;

import com.powerdata.system.domain.PaimonSyncTask;

/**
 * @author deeprado
 * @version 1.0
 * @description
 * @date 2023/8/29 16:14
 */
public class PaimonSyncTaskParam extends PaimonSyncTask {
    private String types;
    private String hiveUrl;
    private String hdfsUrl;
    private Integer pageSize;
    private Integer pageNum;
    private String orderByColumn = "id";
    private String isAsc = "desc";

    public PaimonSyncTaskParam() {
    }

    public PaimonSyncTaskParam(String types, String hiveurl, String hdfsurl, PaimonSyncTask paimonSyncTask) {
        this.types = types;
        this.hiveUrl = hiveurl;
        this.hdfsUrl = hdfsurl;
        super.setCreater(paimonSyncTask.getCreater());
        super.setCreatetime(paimonSyncTask.getCreatetime());
        super.setDistcatalogid(paimonSyncTask.getDistcatalogid());
        super.setDistdatabase(paimonSyncTask.getDistdatabase());
        super.setDisttable(paimonSyncTask.getDisttable());
        super.setId(paimonSyncTask.getId());
        super.setOther1(paimonSyncTask.getOther1());
        super.setSourceip(paimonSyncTask.getSourceip());
        super.setSourcetypes(paimonSyncTask.getSourcetypes());
        super.setStatus(paimonSyncTask.getStatus());
        super.setSyncdata(paimonSyncTask.getSyncdata());
        super.setOther2(paimonSyncTask.getOther2());
        super.setOther3(paimonSyncTask.getOther3());
        super.setOther4(paimonSyncTask.getOther4());
    }

    @Override
    public String toString() {
        return super.getSourceip() + super.getSyncdata() + super.getDistcatalogid() + super.getDistdatabase() + super.getDisttable();
    }

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public String getHiveUrl() {
        return hiveUrl;
    }

    public void setHiveUrl(String hiveUrl) {
        this.hiveUrl = hiveUrl;
    }

    public String getHdfsUrl() {
        return hdfsUrl;
    }

    public void setHdfsUrl(String hdfsUrl) {
        this.hdfsUrl = hdfsUrl;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }
}
